﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YServer;

namespace ServerApp.Logic
{
    [Serializable]
    public class MatchRoom
    {
        public int id;
        /// <summary>
        /// 房主名字
        /// </summary>
        public string role_name;

        /// <summary>
        /// 一支队伍的最大人数
        /// </summary>
        public int count;
        public List<string> teamOne;
        public List<string> teamTwo;

        public List<YToken> tokens;

        public MatchRoom(int c = 5)
        {
            count = c;
            tokens = new List<YToken>();
            teamOne = new List<string>();
            teamTwo = new List<string>();

        }

        //public MatchRoom(int i,string n,int c=5) {
        //    id = i;
        //    role_name = n;
        //    count = c;
        //    teamOne = new List<string>();
        //    teamTwo = new List<string>();

        //}

        public void Clear() {
            role_name = "";
            teamOne.Clear();
            teamTwo.Clear();
            tokens.Clear();
        }
    }
}
